package com.supermarket.shop.system.dao;

import com.supermarket.shop.system.domain.Commodity;

import java.io.IOException;
import java.util.ArrayList;

public interface CommodityDao {
    public abstract void BufferedWriterFile(Commodity com) throws IOException;
    public abstract ArrayList<Commodity> BufferedReaderFile() throws IOException;
    public  boolean isExist(String name) throws IOException;
    Integer maxCommodityId() throws IOException;
    boolean addCommodity(Commodity commodity) throws IOException;
    public abstract void findAllCommodity() throws IOException;
    public void deleteCommodityByName(String name)throws IOException;
    public abstract void updateCommodityByname(Commodity commodity,String nameupdate) throws IOException;



}
